package org.smog.core.config.security.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-14 11:22
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
public class AuthUser implements IAuthUser {

    @ApiModelProperty("登录设备ID")
    String deviceId;

    @ApiModelProperty("用户Id")
    private String id;

    @ApiModelProperty("登录用户名")
    private String userName;

    @ApiModelProperty("用户真实姓名")
    private String realName;

    @JsonIgnore
    @ApiModelProperty(value = "密码", hidden = true)
    private String password;

    @ApiModelProperty("权限标识集合")
    private String[] permissions;

    @ApiModelProperty("角色集合")
    private String[] roles;

}
